package com.doudou.collection.service;


import com.doudou.collection.pojo.dto.AnnouncementAddNewDTO;
import com.doudou.collection.response.ResultVO;
import com.doudou.collection.security.CustomUserDetails;

public interface AnnouncementService {

    /**
     * 发布公告
     * @param announcementAddNewDTO
     * @return
     */
    ResultVO addNew(AnnouncementAddNewDTO announcementAddNewDTO, CustomUserDetails userDetails);

    /**
     * 查询所有公告
     * @return
     */
    ResultVO selectAll();

    /**
     * 编辑公告
     * @param id
     * @return
     */
    ResultVO editAnnouncementById(Long id);

    /**
     * 修改公告撤回状态
     * @param id
     * @param ifCancel
     * @return
     */
    ResultVO updateIfCancel(Long id, Integer ifCancel);

    /**
     * 修改公告删除状态
     * @param id
     * @param delFlag
     * @return
     */
    ResultVO updateDelFlag(Long id, Integer delFlag);
}
